[Unit]
Description = GlassFish Server v4.1
After = syslog.target network.target

[Service]
Type = forking
User={{ dataverse.glassfish.user }}
ExecStart = /usr/bin/java -jar {{ glassfish_dir }}/glassfish/lib/client/appserver-cli.jar start-domain
ExecStop = /usr/bin/java -jar {{ glassfish_dir }}/glassfish/lib/client/appserver-cli.jar stop-domain
ExecReload = /usr/bin/java -jar {{ glassfish_dir }}/glassfish/lib/client/appserver-cli.jar restart-domain
LimitNOFILE=65000
TimeoutStartSec=180s

[Install]
WantedBy = multi-user.target
